package com.crm.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import com.crm.dao.BaseDictDao;
import com.crm.domain.BaseDict;

public class BaseDictDaoImpl extends HibernateDaoSupport implements BaseDictDao {

	@Override
	public List<BaseDict> findByTypeCode(String dict_type_code) {
		// SELECT *FROM base_dict WHERE dict_type_code="002";
		return (List<BaseDict>) this.getHibernateTemplate().find(
				"FROM BaseDict WHERE dict_type_code=? ", dict_type_code);
	}
	
}
